package com.tencent.sr.iris.activity.interfaces.request.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("个人业绩")
@NoArgsConstructor
@AllArgsConstructor
public class PersonalPerformanceRequest {

    @ApiModelProperty("操作人uid")
    private String operationUid;

    @ApiModelProperty("统计具体时间")
    private String salesDate;

    @ApiModelProperty("统计时间段 - 开始时间")
    private String salesDateBegin;

    @ApiModelProperty("统计时间段 - 结束时间")
    private String salesDateEnd;

    @ApiModelProperty("用户id")
    private String uid;

    @ApiModelProperty("组织Id 链路")
    @NotBlank(message = "组织链路不能为空")
    private String orgInPath;

    @ApiModelProperty("导师ID")
    private String tutorUid;

    @ApiModelProperty("排序字段 sales_order_num=成交单量(默认排序),sales_amt=成交金额," +
            "sales_atv=客单价,sales_user_num=成交用户数,sales_income_amt=整体收益," +
            "sales_self_income_amt=自购收益,sales_self_income_amt=推广收益")
    private String orderField;

    @ApiModelProperty("排序方式 desc:降序  asc:升序")
    private String orderDirection;

    @ApiModelProperty("是否汇总")
    private Boolean queryDetail;
}
